﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JF.RealtimeNotifications.Notifiers.Extensibility;

namespace JF.RealtimeNotifications.Notifiers.Feeds
{
    public class FeedNotification : Notification
    {
        private const String NotificationType = "Feed";

        public FeedItem Item { get; private set; }

        public FeedNotification()
        {
            Type = NotificationType;
        }

        public FeedNotification(String title, FeedItem item)
        {
            Title = title;            
            Type = NotificationType;
            Item = item;
            if (item != null)
            {
                Text = item.ToString();
            }            
        }
    }
}
